home *** CD-ROM | disk | FTP | other *** search
- ; $VER: rtUtils Installation Script 1.00 (27.07.97)
-
- ; LANGUAGES
- (procedure polish (
- (set language0 "Polski")
- (set language1 "pl")
- (set MSG_DESTINATION "Podaj ôcieûkë docelowâ dla komend")
- (set MSG_GUIDEDEST "Podaj ôcieûkë docelowâ dla pliku AmigaGuide")
- (set MSG_COPYCMD "Kopiowanie komend")
- (set MSG_COPYGUIDE "Kopiowanie pliku AmigaGuide")
- (set MSG_DOIEXECUTEIT "Czy mam uruchomiê skrypt AmigaDOS,\naby zademonstrowaê moûliwoôci\nobu komend")
- (set MSG_DOIEXECUTEIT0 "Nie uruchom")
- (set MSG_DOIEXECUTEIT1 "Uruchom")
- (set MSG_EXECUTE "Wykonywanie skrytpu AmigaDOS")
- (set MSG_OSV36NEEDED "Wymagany jest system 2.00 (wersja 36)\nBez niego komendy nie bëdâ dziaîaê!\n\nPrzerywam instalacjë!\n\nWersja systemu: %ld")
- (set MSG_REQTOOLSV38NEEDED "Wymagana jest biblioteka reqtools.library w wersji 38\n(obecna wersja: %ld)\n\nInstalacja zostanie przerwana")
- (set MSG_REQTOOLSNEEDED "Wymagana jest biblioteka reqtools.library w wersji 38\n\nInstalacja zostanie przerwana")
- ))
-
- (procedure english (
- (set language0 "English")
- (set language1 "en")
- (set MSG_DESTINATION "Enter path for commands")
- (set MSG_GUIDEDEST "Enter path for AmigaGuide help")
- (set MSG_COPYCMD "Copying commands")
- (set MSG_COPYGUIDE "Copying Guide")
- (set MSG_DOIEXECUTEIT "Shall I run an AmigaDOS script\nTo demonstrate the usage\nof those two commands")
- (set MSG_DOIEXECUTEIT0 "Oh please don't")
- (set MSG_DOIEXECUTEIT1 "Yes, run it")
- (set MSG_EXECUTE "Executing AmigaDOS script")
- (set MSG_OSV36NEEDED "Kickstart 2.00 (version 36 required)\nWithout it the commands will not work!\n\nAborting installation!")
- (set MSG_REQTOOLSV38NEEDED "reqtools.library version 38 needed\n(current version installed: %ld)\nAll the commands use it!\n\nAborting installation!")
- (set MSG_REQTOOLSNEEDED "reqtools.library version 38 needed\nAll the commands use it!\n\nAborting installation!")
- ))
-
- (set language0 "")
- (if (= @language "english") (english))
- (if (= @language "polski") (polish))
- (if (= language0 "") (english))
-
- (complete 0)
- (welcome)
-
- (set osversion (/ (getversion) 65536))
- (set rtversion (/ (getversion "LIBS:reqtools.library") 65536))
-
- (if (< osversion 36)
- (
- (exit (MSG_OSV36NEEDED osversion))
- )
- )
- (if (= rtversion 0) ( (exit MSG_REQTOOLSNEEDED) ) )
- (if (< rtversion 38) ( (exit (MSG_REQTOOLSV38NEEDED rtversion)) ) )
-
- (set @default-dest
- (askdir (prompt MSG_DESTINATION)
- (help @askdir-help)
- (default "C:")
- (newpath))
- )
-
- (set guidedest
- (askdir (prompt MSG_GUIDEDEST)
- (help @askdir-help)
- (default "HELP:")
- (newpath))
- )
-
- (complete 25)
- (copyfiles
- (prompt MSG_COPYCMD)
- (help @copyfiles-help)
- (source "")
- (dest @default-dest)
- (choices "rtGetString" "rtEZReq")
- (confirm)
- (files)
- )
- (complete 50)
- (set guidename ("rtUtils.guide.%s" language1))
- (copyfiles
- (prompt MSG_COPYGUIDE)
- (help @copyfiles-help)
- (source guidename)
- (dest guidedest)
- (newname "rtUtils.guide")
- (confirm)
- )
-
- (complete 75)
- (set executeit
- (askbool (prompt MSG_DOIEXECUTEIT)
- (help @askbool-help)
- (default 1)
- (choices MSG_DOIEXECUTEIT1 MSG_DOIEXECUTEIT0))
- )
- (if (= executeit 1)
- (
- (execute ("rtUtilsDemoScript.%s" language1) (prompt MSG_EXECUTE) (safe))
- )
- )
- (complete 100)
- (exit)
-